//
/***********************************************************
             File name:      main.c
             Author:         Bitat (陆叁柒)
             Email :         Bitat@qq.com
             Gitee :         https://gitee.com/bitat
             CSDN  :         https://blog.csdn.net/bitat 
             History:        2023/2/13
************************************************************/
    
#include <stdio.h>
#include <string.h>

void my_strlen(char* str,int count)
{
    while(*str != '\0')
    {
        str++;
        count++;
    }
    printf("%d\n",count);
}

int main()
{
    int count = 0;
    char str[] = "hello world!";
    my_strlen(str,count);

    return 0;
}


//int main()
//{
//    char str[] ="hello world!";
//    unsigned long len = strlen(str);
//    printf("%lu\n",len);
//    return 0;
//}
